class Car:
    def __init__(self, model, license_no):
        self._model = model
        self._license = license_no

    @staticmethod
    def start():
        print('汽车启动')

    @staticmethod
    def stop(self):
        print('汽车停止')


class Taxi(Car):
    def __init__(self, model, license_no, company):
        super().__init__(model, license_no)
        self._company = company

    def start(self):
        print('乘客您好！')
        print(f'我是{self._company}的出租车，车牌号是{self._license}，现在开始服务。')

    def stop(self):
        print('您已到达目的地，请下车！')


class Sedans(Car):
    def __init__(self, model, license_no, owner):
        super().__init__(model, license_no)
        self._owner = owner

    def start(self):
        print(f'我是{self._owner}，我的轿车我做主！')

    def stop(self):
        print('我是轿车，我有权利选择停车地点！')


def main():
    taxi = Taxi('长城', '京A88888', '北京出租车公司')
    taxi.start()
    taxi.stop()

    sedans = Sedans('宝马', '京A66666', '张三')
    sedans.start()
    sedans.stop()


if __name__ == '__main__':
    main()
